package com.zxq.uart.controller;

import com.zxq.uart.frame.decoder._27SetFreeChargeVolumeAdjustResult;
import com.zxq.uart.frame.encoder._27SetFreeChargeVolumeAdjustCmd;
import com.zxq.uart.result.ResultVO;
import com.zxq.uart.service.impl.PlatformExchange;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class _27SetFreeChargeVolumeAdjustController extends PlatformExchange<_27SetFreeChargeVolumeAdjustCmd, _27SetFreeChargeVolumeAdjustResult> {

    @Override
    public Integer getCmd() {
        return 0x27;
    }

    @PostMapping("exchange/27")
    @Override
    public ResultVO<_27SetFreeChargeVolumeAdjustResult> exchange(@RequestBody _27SetFreeChargeVolumeAdjustCmd order) {
        return super.exchange(order);
    }

    @Override
    public _27SetFreeChargeVolumeAdjustResult getResult() {
        _27SetFreeChargeVolumeAdjustResult setFreeChargeVolumeAdjustResult  = new _27SetFreeChargeVolumeAdjustResult();
        return setFreeChargeVolumeAdjustResult;
    }

}
